package graduationorder.graduationorder.service;

import graduationorder.graduationorder.domain.Order;
import graduationorder.graduationorder.domain.Order;
import graduationorder.graduationorder.error.BusinessException;
import graduationorder.graduationorder.result.CommonReturnType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrdersService {

    public CommonReturnType getOrders(String orderId);

    public CommonReturnType getAllOrdersmapper();

    public CommonReturnType createOrder(Order order) throws BusinessException;

    public CommonReturnType deleteOrder(String orderId) throws BusinessException;

    public CommonReturnType updateOrder(Order order) throws BusinessException;

    public CommonReturnType findOrdersByCriteria( String orderId,String customerSource,
                                     String serviceType,
                                     String major,
                                     String title,
                                     Integer wordCount,
                                     String orderDate,
                                     String dueDate);
}
